package com.kmzx.one.common.enums;

public enum CommonEnums {
    OK(200,"OK"),
    NO_Express_Info(203,"暂无物流信息"),
    No_Result(404,"资源不存在"),
    Param_Not_Full(409,"参数不完整"),
    Param_Must_Not(410,"缺少必要用户参数"),
    Server_Busy(500,"服务器正忙");

    int code;

    String msg;

    public int getCode() {
        return code;
    }

    public CommonEnums setCode(int code) {
        this.code = code;
        return this;
    }

    public String getMsg() {
        return msg;
    }

    public CommonEnums setMsg(String msg) {
        this.msg = msg;
        return this;
    }

    CommonEnums(int code) {
        this.code = code;
    }

    CommonEnums() {
    }

    CommonEnums(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
